package org.codetranslators.compiler.tiger.abssyntree;


public class FunctionDec extends Dec {
   private Symbol name;
   private FieldList params;
   private NameTy result;  /* optional */
   private Exp body;
   private FunctionDec next;
   
   public FunctionDec(int p, Symbol n, FieldList a, NameTy r, Exp b, FunctionDec x)		       
   {
	   pos = p; 
	   name = n; 
	   params = a; 
	   result = r;
	   body = b; 
	   next = x;
   }
   
   public Symbol getName()
   {
	   return name;
   }
   
   public FieldList getParams()
   {
	   return params;
   }

	public Exp getBody() 
	{
		return body;
	}
	
	public FunctionDec getNext() 
	{
		return next;
	}
	
	public NameTy getResult() 
	{
		return result;
	}
}
